﻿package com.toncen.samepms.system.domain;

import com.toncen.samepms.common.AbstractDomain;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.IntegerDataType;
 
/**
 * 描述：模块配置表表SYSTEM_MODULE_CONFIG的domain文件
 * 
 * @author tch
 */
@DynamicRowDataRow(title = "动态行模块配置表", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列模块配置表", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列模块配置表", sheetIndex = 1)
public class ModuleConfig extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1339154025448L;
	
	/**
	 * 上级模块
	 */ 
	
	private long parentId;
    
	/**
	 * 名称
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "名称")
	@DynamicRowDataCell(cellIndex = 2,  title = "名称", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "名称", require = false)
	private  String name; 	 
    
	/**
	 * 对应类名称
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "对应类名称")
	@DynamicRowDataCell(cellIndex = 3,  title = "对应类名称", require = false)
	@DynamicCellDataCell(rowIndex = 3,  title = "对应类名称", require = false)
	private  String domainName; 	 
    
	/**
	 * 顺序
	 */ 
	@StaticDataCell(rowIndex = 4, cellIndex = 4, title = "顺序")
	@DynamicRowDataCell(cellIndex = 4,  title = "顺序", require = false)
	@DynamicCellDataCell(rowIndex = 4,  title = "顺序", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int sequence=10;
	
//	private List<ModuleConfig> childs = new ArrayList<ModuleConfig>();
    

	public ModuleConfig() {
		super();
	}


	/**
	 * @return the  name
	 */
	public  String getName() {
		return  name;
	}

	/**
	 * @param  name
	 *            the  name to set
	 */
	public void setName( String  name) {
		this. name =  name;
	}
	
	/**
	 * @return the  domainName
	 */
	public  String getDomainName() {
		return  domainName;
	}

	/**
	 * @param  domainName
	 *            the  domainName to set
	 */
	public void setDomainName( String  domainName) {
		this. domainName =  domainName;
	}
	
	/**
	 * @return the  sequence
	 */
	public  int getSequence() {
		return  sequence;
	}

	/**
	 * @param  sequence
	 *            the  sequence to set
	 */
	public void setSequence( int  sequence) {
		this. sequence =  sequence;
	}



	public long getParentId() {
		return parentId;
	}


	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	
}
